import { createSlice } from "@reduxjs/toolkit";

export const homeS = createSlice({
  name: "home",
  initialState: {
    start: "北京",
    end: "三亚",
    data: "2025-3-19",
  },

  //   reducers: {
  //     start: (state, action) => {
  //       state.start = action.payload;
  //     },
  //     end: (state, action) => {
  //       state.end = action.payload;
  //     },
      data: (state, action) => {
        state.data = action.payload;
      },
  //   },
});

export const { start, end, data } = homeS.actions;
